package com.xinqi.modules.sys.role.dto.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author linkai
 * @date 2022/6/10
 */
@Data
@Schema(description = "用户角色-批量添加")
public class AddUserRoleDTO implements Serializable {
    /**
     * 用户id
     */
    @Schema(description = "用户ID")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    /**
     * 角色d
     */
    @Schema(description = "角色ID列表")
    @NotEmpty(message = "角色ID列表不能为空")
    private List<Long> roleIdList;
}
